Skip to content

feat(plugin-auth): Add User says when a re-added address was already pending - #35162

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-34651-add-user-already-pending
Nov 18, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-34651-add-user-already-pending

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread

Fixes #34651

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 改了什么:托管环境「设置 → 用户 → 添加用户」重加一个已在等激活的人时,结果弹窗多一行「已在待激活中」;正常新加时这一行不出现。
  • 为什么改:以前只填邮箱重加一个等激活的人,结果和正常新加一模一样,管理员看不出此人早已在等;而直接读 alreadyPending 会在每次正常新加时画出一行「false」,裁决 A 不接受。
  • 风险与回滚:只加不减。接口回答新增一个只在重加时出现的键 pendingAgain: true,alreadyPending 原样保留,现有 API 读者不受影响;回滚即 revert 本 PR。
  • 先看:packages/plugins/plugin-auth/src/pending-sso-users.ts(runAddSsoUser 新增的一行条件展开)、packages/platform-objects/src/identity/sys-user.object.ts(add_sso_user 结果弹窗新增的字段)、packages/plugins/plugin-auth/src/pending-sso-users.test.ts(末尾两个新 describe)。
  • 两分钟验证:pnpm --filter @objectstack/plugin-auth exec vitest run src/pending-sso-users.test.ts -t 34651,预期 3 个用例全绿。
  • 需要你做的:无,席位落地。

What changes

  • plugin-auth runAddSsoUser: on a re-add of an address that is still pending, the answer gains pendingAgain: true. The key is absent on a fresh add and is never false. alreadyPending is unchanged and still on every answer, so this only widens the answer.
  • sys_user.add_sso_user: the result dialog gains one field, { path: 'pendingAgain', label: 'Already pending', format: 'json' }. The dialog skips a field whose path resolves to nothing, so the row shows only on a re-add. The label is translated in the ten platform-objects bundles, the same way the dialog's other fields are labelled (resultDialog.fields.PATH). The bundles were regenerated with node scripts/check-i18n-bundles.mjs --write, and the translated values were written by hand. Each translation is the "already pending" half of the locale's existing summary.alreadyPending string.
  • Root .changeset/: patch for @objectstack/plugin-auth and @objectstack/platform-objects, with the two declaration lines line-initial.

Why pendingAgain. The card leaves the name to precedent. The precedent is the parent card's dev report (6938771548, open question 1, option B, "for example pendingAgain: true"). The seat ruled for that option when it filed this card, and pendingAgain is one of the card's dedupe words. The answer's shape follows this file's own precedent: notApplied is also present only on a re-add. It also follows the repo's flag-present-only-when-true shape ...(cond ? { key: true } : {}), which servedOverride: true (packages/metadata-protocol/src/protocol-meta-item-reads.ts) and truncated: true (packages/mcp/src/mcp-http-tools.ts) use too.

Why the dialog skips the field on a fresh add. ui/packages/app-shell/src/views/ActionResultDialog.tsx maps each declared field to readPath(data, field.path), then runs .filter(({ field, value }) => field.path === '' || value !== undefined). A path missing from the answer resolves to undefined and is dropped (the header contract says the same). format: 'json' is used because the value is a boolean: valueFitsFormat gives text a string only, and anything else falls back to json anyway.

The released sentence. In packages/platform-objects/CHANGELOG.md, 18.5.0, entry 2e1e3b9, the sentence "The Add User result names an address that was already pending" was untrue for an email-only re-add. Once this lands it is true: the result shows "Already pending" on every re-add, including one that sends only an email.

Tests

On head 0ad415b:

  • Door pin (pending-sso-users.test.ts, describe [#34651] add-sso-user says a re-added address was already pending, and only then): an email-only re-add answers 200 with pendingAgain true (and alreadyPending true). CONTROL: a fresh add answers 201 with no pendingAgain property.
  • Alignment pin (same file, describe [#34651] the import result table reads members of a real row answer): the test stages the import door with a fresh add whose manager is unknown, a malformed address and a re-add that sends a column. It asserts that the first segment of every column path of sys_user.import_sso_users's table field is a member of a real row answer.
  • sys_user pin (cloud-managed-visibility.test.ts, describe add_sso_user names an address that was already pending): add_sso_user declares exactly one field reading pendingAgain (label and format pinned). CONTROL: no field reads alreadyPending.
  • Package runs, each through the verify lock: plugin-auth vitest run 285 files, 5997 passed, 10 skipped; platform-objects vitest run 123 files, 2047 passed; typecheck for both packages exit 0 (test layers included through check:test-typecheck).
Ablations (scripts/ablation-replace.mjs; each leg restored, blob == HEAD and git diff HEAD empty)

The tests import pending-sso-users.ts and sys-user.object.ts by relative path, so the source is what runs and no dist/ step applies.

  • A1, door key deleted (...(outcome.alreadyPending ? { pendingAgain: true } : {}),, anchor 1 to 0): -t 34651 gave 1 failed and 2 passed. The re-add pin was red, and the two controls (fresh add, alignment) stayed green.
  • A2, sys_user field deleted (anchor 1 to 0): 1 failed and 1 passed. The pendingAgain field pin was red and the control stayed green.
  • A3, import row member notApplied deleted from the door's row answer (anchor 1 to 0): the alignment pin failed with expected [ 'notApplied' ] to deeply equal [].

Acceptance notes

  • content/docs/permissions/authentication.mdx line 1340 says the add door "answers 201, or 200 with alreadyPending". It does not mention pendingAgain. That is outside this card's file surface, and the sentence is still true.
  • The label is "Already pending", not the import table's "Already pending, told again". A re-add of a deactivated pending person also answers pendingAgain, but no invitation is sent then (host.reason reads deactivated), so "told again" would be wrong there. The import table's alreadyPending column and summary.alreadyPending already use "told again" for that same deactivated row. This PR leaves them as they are.
  • The plugin-auth alignment pin reads SysUser through @objectstack/platform-objects/identity, which resolves to that package's dist/ (a listed unaliased pair in check-test-source-alias). CI builds it first.

Verification

Local gates on 0ad415b
  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 73 commands against merge base 3446f23. Each was run with stdin closed, and its exit code was captured before any pipe.
    • 71 exited 0 on the first run.
    • node scripts/check-plugin-teardown-shape.mjs --self-test first exited 3 because its fixture commit 621a487 was missing from the shallow clone. After a depth-1 fetch of that commit it exited 0 ("48 cases pass").
    • NOT MEASURED: pnpm check:dual-build-cjs-loads exited 3 (PREREQUISITE NOT MET: it needs a whole-workspace build). This narrowing is declared; Lint & Repo Gates runs it in CI.
  • --ran reconciliation: "73 derived famil(ies) accounted for — 72 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)".
  • node scripts/check-i18n-bundles.mjs --filter=platform-objects: exit 0, "all bundles in sync".
  • node scripts/pm/overlap-check.mjs --repo=objectstack-ai/objectstack: exit 0, "VERDICT clean". It merges cleanly with origin/main 3483407 and with fix(auth)!: a server outside development mode refuses a development seed credential #34717, which shares the translation bundles and sys-user.object.ts.
  • Build: pnpm --filter '@objectstack/plugin-auth^...' build VERDICT command-exit 0, then turbo run build --filter=@objectstack/cli --filter=@objectstack/platform-objects VERDICT command-exit 0.

Generated by Claude Code

… pending person

The add door now answers pendingAgain: true only when the address was
already pending, and sys_user.add_sso_user's result dialog reads it, so the
row is drawn exactly on a re-add. A plugin-auth pin checks the import result
table's columns against a real row answer.

Claude-Session: https://claude.ai/code/session_01JQwxbYRqkDAGuse5Wqbohi
Co-authored-by: Claude <noreply@anthropic.com>
…lt row; changeset

Claude-Session: https://claude.ai/code/session_01JQwxbYRqkDAGuse5Wqbohi
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

2 anchor(s) derived from 2 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • 1 anchor(s) matched too much of the corpus to be a work list: sys_user (symbol, 56 pages)
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 23 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json a6cf988eb3afc4cbe23fac4caf71206943806c23 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 3064633de8ec4f30a4b8542da063cb3e77cd90aa — the merge of head 0ad415bbcc4163a7c5d2af4f9061427be9af3e9c into base a6cf988eb3afc4cbe23fac4caf71206943806c23, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 3064633de8ec4f30a4b8542da063cb3e77cd90aa && git checkout 3064633de8ec4f30a4b8542da063cb3e77cd90aa
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a6cf988eb3afc4cbe23fac4caf71206943806c23 0ad415bbcc4163a7c5d2af4f9061427be9af3e9c && git checkout -B drift-repro a6cf988eb3afc4cbe23fac4caf71206943806c23 && git merge --no-ff 0ad415bbcc4163a7c5d2af4f9061427be9af3e9c

node scripts/docs-audit/affected-docs.mjs --json a6cf988eb3afc4cbe23fac4caf71206943806c23

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

Contract review brief handed to the isolated reviewer (TIER_DEFAULT, declaration face), posted beside its record:

Contract review brief — PR #35162 @ 0ad415bbcc4163a7c5d2af4f9061427be9af3e9c (card #34651)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head (shape: node scripts/pm/record-recognisers.mjs --template --face declaration) with a PASS or FAIL verdict.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 0ad415bbcc4163a7c5d2af4f9061427be9af3e9c
Local-runs: none

Inputs: brief 6973847132; card #34651 (body and all 4 comments: triage 6938946687, regrade 6969710529, claim 6972612725, os-dev-report 6973807530); parent #33187's dev report 6938771548 (open questions 1, 2 and 4) and ruling A 6915677641; PR #35162 (body and comments); the full diff against merge-base 3446f234f3 (16 files, +133/−3: 2 commits); the changeset; follow-up card #35164; and the check-runs on this head. Code outside the diff was read at origin/main only.

Face: the committed file list touches no packages/spec/src/** path and no governed path. record-recognisers.mjs --paths decides no face from the paths and defers to the changeset's Clause-②: line, which carries yes (widening). So this is the declaration face at TIER_DEFAULT, with no ④.

① Derived judgments

  • CI on this head is still running. 50 check-runs: 13 success, 16 skipped, 21 in progress, 0 failure. Still running: Build Core, Test Core (10 shards), Type Check · workspace, Type Check · consumer gates, Type Check · debt ledger, Live E2E UI and six Lint · lanes (among them Lint · repo & tooling gates, which carries the NOT-MEASURED check:dual-build-cjs-loads, and Lint · docs & code guards). Complete and green: Check Changeset, Governed Surface Queue Guard, PR-body guards, Type Check · source gates, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Check PR Size, Dogfood Regression Gate, Test UI. I judge on what is complete. The seat must see the 21 in-progress runs finish green on this head before landing.
  • The add-sso-user door answer: widened, right. runAddSsoUser adds one spread, ...(outcome.alreadyPending ? { pendingAgain: true } : {}), beside the existing keys. The key is present only on a re-add of a pending person and is never false. The alreadyPending: outcome.alreadyPending line is untouched, so it is still on every answer with the same value. The status codes (200 on a re-add, 201 on a fresh add), the positions / permissionSets / notApplied / organizationId / manager / host members and every refusal path are unchanged. The door pin asserts both halves: an email-only re-add answers 200 with pendingAgain true and alreadyPending true; the CONTROL fresh add answers 201 with no pendingAgain property and alreadyPending false. A re-add of a deactivated pending person also answers pendingAgain: true. That is correct, because the person is pending, and the dialog's host.reason row already says the invitation was not sent.
  • The sys_user.add_sso_user result dialog: one field added, right. { path: 'pendingAgain', label: 'Already pending', format: 'json' } goes in between email and notApplied. At origin/main, ActionResultDialog.tsx:123 filters with field.path === '' || value !== undefined, and readPath returns undefined for a missing member. So the row is drawn only on a re-add, and a fresh add draws no false row. That is exactly what ruling A 6915677641 requires: it turned down "a misleading false row on every fresh add". format: 'json' fits a boolean (valueFitsFormat gives json any value, and text only a string). The import table's own alreadyPending column draws the same way. The sys_user pin checks that exactly one field reads pendingAgain, with its label and format, and its CONTROL checks that no field reads alreadyPending. The rewritten comment above fields is accurate: notApplied comes from notAppliedOn, which lists positions, permission sets and manager only.
  • Translation bundles: right. Each of the 11 platform-objects bundles (en plus ten locales) gains one leaf, resultDialog.fields.pendingAgain, under add_sso_user. That is the same key route the sibling fields use. Each locale's value is the "already pending" half of its existing alreadyPending / summary.alreadyPending string, for example zh-CN 已在待激活中 from 已在待激活中,已再次通知. No existing key is changed or removed. The dev ran check-i18n-bundles --filter=platform-objects locally with exit 0. CI's lint lane is still running (above).
  • Built entries: nothing removed, renamed or narrowed. @objectstack/plugin-auth's . entry re-exports pending-sso-users.js in full (index.ts:102). runAddSsoUser keeps its signature and its EndpointResult return type. The answer body is untyped, and no exported interface describes it (ImportSsoUserRowResult is the import row and is unchanged). No SDK method builds this URL (auth-route-ledger.ts:263: server-only). @objectstack/platform-objects ships SysUser with one more element in an existing array of the existing field shape, plus one more bundle leaf. Neither changes a type. No input a host, author or API caller could pass before is refused now.
  • SQL push-down: no finding. The diff adds no query, no id materialisation and no in-app join. The new key is computed from outcome.alreadyPending, which the door already held. The new alignment test stages the import door through its existing HTTP path.

② Semver level

  • Changeset .changeset/34651-add-user-already-pending.md: right. It bumps @objectstack/plugin-auth and @objectstack/platform-objects at patch. Those are exactly the two published packages the diff moves; the tests are not published. AGENTS.md Post-Task Checklist item 3 says that Metadata-protocol: none takes patch, and that a non-protocol widening ships patch. CI Check Changeset succeeded on this head.
  • Clause-②: yes (widening): right. It is line-initial in both the PR body and the changeset, and the arm is from the closed pair. An answer key present only when true, added beside an unchanged key, is a widening. The claim 6972612725 declared Clause-②: yes from the start.
  • Metadata-protocol: none: right. No spec key, accepted value or metadata type is added. The sys_user change uses the existing resultDialog.fields row and the existing json format.
  • Changeset prose, checked against the diff: right.
    • "answers pendingAgain: true on a re-add of a person who is still pending, and leaves the key out on a fresh add. It never answers false": matches the spread and both door pins.
    • "alreadyPending is unchanged and is still on every answer": the line is untouched.
    • "including when you sent only an email": the door pin is the email-only re-add.
    • "The dialog skips a field whose path is absent from the answer, so the row is drawn only on a re-add": true at ActionResultDialog.tsx:123.
  • The released 18.5.0 sentence (PR body claim): right for the clause the card names. packages/platform-objects/CHANGELOG.md line 464 says "The Add User result names an address that was already pending". Before this PR, that was untrue for an email-only re-add, because nothing in the answer marked it and notApplied is absent when no column is sent. After this PR, the "Already pending" row is drawn on every re-add, so the clause is true. That meets the card's last Done-when bullet. The parenthetical that follows it is N2.

Findings:

  • N1 (nit): the door's prose descriptions do not name the new key. content/docs/permissions/authentication.mdx:1340 ("answers 201, or 200 with alreadyPending") and the route-ledger note at auth-route-ledger.ts:263 describe the answer without pendingAgain. Both are still true, and the PR's Acceptance notes record the doc line. For now the changeset is the only place an API reader learns the key. Prose only, with no correctness or contract effect.
  • N2 (nit): part of the released sentence stays untrue in one rare case. The 18.5.0 sentence goes on: "(the hosting organisation is told again, …)". For a deactivated pending person, no invitation is sent (host.reason reads deactivated). The Add User dialog itself shows this correctly, through its "Invitation not sent" row. Only the released CHANGELOG parenthetical is wrong, and it is the same class as follow-up Import Users result: a deactivated pending person's row reads 'Already pending, told again: true' next to 'Why not told: deactivated' #35164. Prose only: a released history entry.

③ Boundary flags

  • open_questions: []. Nothing to answer.
  • Parent open question 1 (6938771548, option B, "for example pendingAgain: true"): implemented as option B. The key name follows the cited precedent, the claim records that naming is the seat's call, and the card lists pendingAgain among its dedupe words. Parent open question 2 (option B: the released sentence becomes true once the fix lands): answered in ②. Parent open question 4 (the real-answer alignment pin): delivered as the [#34651] the import result table reads members of a real row answer describe. It stages a fresh add with an unknown manager, a malformed address and a re-add that sends a column, so every member the column paths name is answered on some row. Ablation A3 turns it red.
  • NOT-MEASURED gate check:dual-build-cjs-loads (exit 3, needs a whole-workspace build): answered. It was declared as a narrowing, and CI Lint · repo & tooling gates carries it on this head. That run is still in progress, so the seat's green-CI check before landing covers it.
  • Deviation, shared clone deepened (--deepen=1500 for overlap-check, and a depth-1 fetch of 621a4876 for the teardown self-test fixture): process only, no contract effect. Accepted.
  • Deviation, the relay forced draft: true on PR creation: process only. Accepted.
  • Deviation, the label is "Already pending", not "Already pending, told again": answered and right. A deactivated pending re-add also answers pendingAgain, and no invitation is sent then, so "told again" would be false on that row.
  • Deviation, translations hand-written into the generated bundles: answered. The generator's merge mode keeps them, and the dev ran check-i18n-bundles with exit 0. CI's lint lanes re-check it.
  • Deviation, commit trailers are the model-free pair: process only.
  • Out-of-scope finding, the import table's "Already pending, told again" label on a deactivated pending row: escalated, filed as Import Users result: a deactivated pending person's row reads 'Already pending, told again: true' next to 'Why not told: deactivated' #35164 (p3, domain:server, pm:queue).
  • Out-of-scope note, authentication.mdx:1340: not filed by the dev. Recorded here as N1.
  • The test that reads SysUser through @objectstack/platform-objects/identity resolves that package's dist/. @objectstack/platform-objects is a workspace:* dependency of plugin-auth at origin/main, and the existing declaredAction helper and import already use this route. CI's Build Core / Test Core (in progress) answer it.
  • Process notes: the PR is a draft. Author: objectstack-fleet[bot] (relay), assignee os-warren, so no extra author note is owed. The two findings are nits, so this is the final round unless the head moves for a reason other than prose.

Implemented-by: claude/issue-34651-add-user-already-pending
Reviewed-by: session_01JQwxbYRqkDAGuse5Wqbohi

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

Final head for L1 · 2026-11-18T09:23Z

Head-sha: 0ad415bbcc · all check-runs success or skipped (37 success, 16 skipped, 0 red; includes Lint · repo & tooling gates, which carries the locally NOT-MEASURED check:dual-build-cjs-loads) · NOT governed, +133 / −3.
Owed: L1 (first read; area o1-B requests it from L1-a). Clause-②: yes (widening), Metadata-protocol: none: the TIER_DEFAULT contract record 6973921268 at this head is PASS (declaration face; nits N1 docs page and route-ledger note omit pendingAgain, N2 the 18.5.0 changelog's "told again" clause for a deactivated person, same family as #35164). Inputs: claim 6972612725, dev report 6973807530. Key name pendingAgain per #33187 dev report 6938771548 option B, which the seat ruled for when filing. Out-of-scope label finding filed as #35164 (p3).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXKtHccbeakAgquNs9

L1 review (#34651) · 2026-11-18T09:24Z

L1: ACCEPT
Head-sha: 0ad415b

This is the first L1 on this PR. I read the full diff against the merge base 3446f234f3: 16 files, +133 / −3. I also read the card, claim 6972612725, the TIER_DEFAULT contract record 6973921268 and the final-head comment 6974363633.

The change.

  • runAddSsoUser adds ...(outcome.alreadyPending ? { pendingAgain: true } : {}) to its answer. The key is present only on a re-add of a pending person and is never false. alreadyPending stays on every answer, so the answer only widens.
  • sys_user.add_sso_user gains one result-dialog field, { path: 'pendingAgain', label: 'Already pending', format: 'json' }. The dialog drops a field whose path resolves to undefined (ActionResultDialog's filter, as the body quotes it). So the row is drawn only on a re-add, and a fresh add shows no false row. That is what ruling A (6915677641) asks for.
  • The label is keyed resultDialog.fields.pendingAgain in every platform-objects bundle, the same way the dialog's sibling fields are labelled. The bundles are in sync (check-i18n-bundles).
  • The name follows the precedent the card leaves to the seat: option B of 6938771548, which gives pendingAgain: true. The shape matches the file's own notApplied and the repo's flag-present-only-when-true form.

Card Done-when, each item.

  • The door pin covers an email-only re-add, which answers 200 with pendingAgain: true. Its CONTROL is a fresh add, which answers 201 with the property absent.
  • The sys_user pin checks exactly one field that reads pendingAgain, with its label and format. Its CONTROL checks that no field reads alreadyPending. Ablation A2 turned it red.
  • The alignment pin stages the import door with three row kinds and asserts that the first segment of every column path in import_sso_users's table field is a member of a real row answer. Ablation A3 (deleting notApplied from the row answer) turned it red.
  • The released sentence in 18.5.0 (2e1e3b9) becomes true, and the PR body says so.
  • The serial constraint is met: feat(plugin-auth): import-users assigns positions from a positions column #34531 merged on 2026-11-17.
  • Ablation A1 (deleting the door key) turned only the re-add pin red. Every restore was verified (blob == HEAD, empty diff).

Shape and scope.

  • Fixes #34651 is on the first card line. No closing keyword sits next to another open card, and there is no content/docs/releases/ change.
  • Every changed path is inside claim 6972612725. The sys_user pin sits in the existing identity suite cloud-managed-visibility.test.ts, which I read as "its test". The 11 bundles are "the field's label through the platform-objects translation keys".
  • check-governed-merges --pr 35162: not governed, +133 / −3.
  • Clause-②: yes (widening) is right, because the answer gains a key and nothing is removed. The PR body, the changeset and the claim all agree. The TIER_DEFAULT record 6973921268 is pinned to this head and reads PASS. Metadata-protocol: none is right too.
  • The changeset bumps plugin-auth and platform-objects at patch, which is right for a non-protocol widening. It is new, not on main. Its sentences match the diff: the key is present only on a re-add and never false, alreadyPending is unchanged, the email-only case is covered, and the row is skipped on a fresh add.

Evidence. plugin-auth: 5,997 tests passed. platform-objects: 2,047 passed. Both typechecks exit 0. dispatch-gates: 73 derived, 72 run with exit 0, and 1 declared NOT MEASURED (check:dual-build-cjs-loads, which needs a whole-workspace build). CI covers that one in Build Core, which is green.

CI at this head, from check-runs: 37 success, 16 skipped, none failed or in progress.

Must-fix

None.

Should-fix

None.

Notes

  • N1. format: 'json' draws the row as "Already pending: true". The body explains why a boolean needs that format. A plain yes-mark would read better, but that would be a valueFitsFormat change in the dialog, which is outside this card.
  • N2. The body's two acceptance notes stand as written. authentication.mdx:1340 does not mention the new key and is still true. The deactivated-pending re-add also answers pendingAgain with no invitation sent, which is why the label omits "told again".

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

Landing · 2026-11-18T09:25Z

Probe Reading
check-governed-merges.mjs --pr 35162 NOT governed · +133 / −3, server paths (plugin-auth, platform-objects), Clause-②: yes (widening) (claim 6972612725)
Contract review (条款②) TIER_DEFAULT record 6973921268 at 0ad415bbcc: PASS (declaration face; nits N1, N2 only)
Head / review 0ad415bbcc · L1-a ACCEPT 6974399045 at this head (first L1; no must-fix, no should-fix), the review of record · all check-runs success or skipped (37 success, 16 skipped, 0 red)
Freshness K = 8, merges cleanly into origin/main 961f4741ff; overlap-check.mjs clean

Open findings: record nits N1 (docs page and route-ledger note omit pendingAgain), N2 (18.5.0 changelog "told again" clause for a deactivated person, family of #35164); L1 note N1 (format: 'json' draws "true").

State: ready + auto-merge armed by area o1-B (lease o1-B, claim 6972612725); Fixes #34651 closes the card on merge.

Dev-effort: medium · Rounds: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add User on a managed environment: an email-only re-add of a pending person does not say it was already pending

2 participants